import { useReducer, useEffect } from 'react'
import AddItem from '../components/list/AddItem'
import List from '../components/list/List'
import ListProvider, { useList } from '../context/ListProvider'
import listReducer from '../Reducer/list-reducer'

const ReducerDemo = () => {
  return (
    <ListProvider>
        <AddItem/>
        <List/>
    </ListProvider>
  )

} 

export default ReducerDemo